<template>
  <div id="app">
    <template v-if="routes.path.startsWith('/user')">
      <!--      <router-view />-->
      <BasicLayout />
    </template>
    <template v-else>
      <BasicLayout />
    </template>
  </div>
</template>

<script lang="ts" setup>
import BasicLayout from "@/layouts/BasicLayout.vue";
import { onMounted } from "vue";
import { useRoute } from "vue-router";

const routes = useRoute();

const initial = () => {
  console.log("❤");
};
onMounted(initial);
</script>
